echo start at %date% %time% >> "%1\logs\upgrade.log"
echo old version in %2 >> "%1\logs\upgrade.log"
echo new version in %3 >> "%1\logs\upgrade.log"
echo shutdown service sk-app-server >> "%1\logs\upgrade.log"
net stop sk-app-server >> "%1\logs\upgrade.log"
echo backup old version >> "%1\logs\upgrade.log"
xcopy "%1\webapps" "%2" /i /y
del "%1\webapps\*.*" /Q /F /S > NUL
rd "%1\webapps" /q /s > NUL
echo load new version >> "%1\logs\upgrade.log"
xcopy "%3" "%1\webapps" /i /y
echo restart service sk-app-server >> "%1\logs\upgrade.log"
net start sk-app-server >> "%1\logs\upgrade.log"
echo completed >> "%1\logs\upgrade.log"